package com.jeejam.storage.sdk.api;
import com.jeejam.framework.base.pojo.Pager;
import com.jeejam.storage.sdk.dto.StorageDto;

import java.util.List;

public interface IStorageService {
    public StorageDto get(int productId, int depotId);

    public List<StorageDto> findByProductId(int productId);

    public int counts();

    public Pager getPager(int currentPage, int pageSize);

    public List<StorageDto> findAllByPage(int currentPage, int pageSize);

    public Pager getPagerByCounts(int counts,int currentPage, int pageSize);

    public void deleteById(int id);

    public StorageDto getById(int id);

    public void save(StorageDto storageDto);

    public void update(StorageDto storageDto);
}
